package com.fang.blogsystem.controller;

import com.fang.blogsystem.pojo.DO.Article;
import com.fang.blogsystem.service.Impl.ArticleServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Bernie_fang
 * @create 2021/5/31 13:11
 **/
@Controller
public class ArticleController {

    @Autowired
    private ArticleServiceImpl articleService;

    // @GetMapping("/article/{id}")
    // public String getArticleDetail(@PathVariable Integer id, Model model){
    //     Article article = articleService.selectArticleWithId(id);
    //     model.addAttribute("article", article);
    //     return "client/articleDetails";
    // }

    @GetMapping("/toArticleEdit")
    public String toArticleEdit(){
        return "back/article_edit";
    }


}
